package com.struct.factory
{
	import com.struct.graph.room_list.RoomListFrame;
	import com.struct.graph.room_list.RoomListGraphWorker;
	
	import sacu.s.Factory;
	
	public class RoomListFactory extends Factory
	{
		public var roomListGW:RoomListGraphWorker;
		public var roomList:RoomListFrame;
		public function RoomListFactory(Name:String)
		{
			super(Name);
		}
		override protected function onInitFactory():void{
			super.onInitFactory();
			roomList = new RoomListFrame();
			roomListGW = new RoomListGraphWorker("RoomListGraphWorker", roomList);
		}
		override protected function onStartFactory():void{
			registerGraphicsWorker(roomListGW);
			SSA.application.limitLayer.addChild(roomList);
		}
		override public function disposeFactory():void{
			super.disposeFactory();
			removeGraphicsWorker(roomListGW.eName);
			SSA.application.limitLayer.removeChild(roomList);
		}
	}
}